<%@ page language="java" pageEncoding="ISO-8859-1"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    <html:base />
    
    <title><bean:message bundle="AlbumResources" key="jsp.title.edit"/></title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="">
	<meta http-equiv="description" content="">
	<link rel="stylesheet" type="text/css" href="../css/basic.css">
  </head>
 
  <body>
  	<logic:present parameter="erroNome">
  		<logic:equal parameter="erroNome" value="true">
	  		<font color="red"><bean:message bundle="AlbumResources" key="jsp.alert.nome.obrigatorio"/></font>
	  		<br>
  		</logic:equal>
  	</logic:present>
  	<logic:present parameter="erroFig">
  		<logic:equal parameter="erroFig" value="true">
	  		<font color="red"><bean:message bundle="AlbumResources" key="jsp.alert.quantidade.obrigatorio"/></font>
	  		<br>
	  	</logic:equal>
  	</logic:present>

  	<logic:present name="albumDTO">
  		<bean:message bundle="AlbumResources" key="jsp.title.edit"/>
  		<br/><br/>

  		<logic:present name="success" scope="request">
  			<bean:message bundle="AlbumResources" key="jsp.msg.edit.OK"/>
  		</logic:present>
	    <html:form action="/Album/EditarAlbum.do" method="POST" focus="nome">
	      <html:hidden property="codigo" name="albumDTO" />
	      <table border="0">
	        <tr>
	          <td><bean:message bundle="AlbumResources" key="jsp.label.nome"/>:</td>
	          <td><html:text property="nome" size="20" name="albumDTO" /></td>
	        </tr>
	        <tr>
	          <td><bean:message bundle="AlbumResources" key="jsp.label.qtdFig"/>:</td>
	          <td><html:text property="qtFig" size="3" name="albumDTO" /></td>
	        </tr>
	        <tr>
	          <td><bean:message bundle="AlbumResources" key="jsp.label.qtFigEspeciais"/>:</td>
	          <td><html:text property="qtFigEspeciais" size="3" name="albumDTO" /></td>
	        </tr>
	        <tr>
	          <td></td>
	          <td align="left"><br/> <input type="submit" value="<bean:message bundle="AlbumResources" key="jsp.label.button.Save"/>"/></td>
	        </tr>
	      </table>
	    </html:form>
	</logic:present>

<a href="../Album/ListarAlbum.do"><bean:message key="jsp.label.voltar"/></a>	
  </body>
</html:html>
